$(document).ready(function() {
	$("#pageSelection").bind("change",function(){
		$("#pageIndex").val($("#pageSelection").val());
		$("#searchResultDiv").load(getRootPath()+ "/MainMenu/profit/searchResultPage.htm",$("#memberForm").serializeArray());
	});
	
	$("#previousButton").bind("click",function(){
		$("#pageIndex").val($("#previousPageIndex").val());
		$("#searchResultDiv").load(getRootPath()+ "/MainMenu/profit/searchResultPage.htm",$("#memberForm").serializeArray());
	});
	
	$("#nextButton").bind("click",function(){
		$("#pageIndex").val($("#nextPageIndex").val());
		$("#searchResultDiv").load(getRootPath()+ "/MainMenu/profit/searchResultPage.htm",$("#memberForm").serializeArray());
	});
	
	$( "#progressbar" ).dialog({
		autoOpen:false,
		width:100,
		height:50,
		modal:true
	});

});
